package com.yy.main.app.mapper;

import com.yy.pojo.base.TQuestions;
import com.yy.pojo.base.TQuestionsExample;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 试题管理Mapper 接口
 * </p>
 *
 * @author 杨阳
 * @since 2017年12月4日
 */
@Repository
@Resource(name = "dataSource")
public interface TQuestionsMapper {
    long countByExample(TQuestionsExample example);

    int deleteByExample(TQuestionsExample example);

    int deleteByPrimaryKey(Long id);

    int insert(TQuestions record);

    int insertSelective(TQuestions record);

    List<TQuestions> selectByExample(TQuestionsExample example);

    TQuestions selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") TQuestions record, @Param("example") TQuestionsExample example);

    int updateByExample(@Param("record") TQuestions record, @Param("example") TQuestionsExample example);

    int updateByPrimaryKeySelective(TQuestions record);

    int updateByPrimaryKey(TQuestions record);
}